xen: sched_null: support for hard affinity
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 7 Apr 2017 12:28:23 +0000 (14:28 +0200)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 7 Apr 2017 14:53:14 +0000 (15:53 +0100)
commitcc13b7487189cfdc5ab454bf547b5c653fadbd6f
tree347060fe757e7d48e4fa41e318645f0d58238ef7
parentd671da3be3ca5f61afedcd585a274f7c0c1c3072
xen: sched_null: support for hard affinity

As a (rudimental) way of directing and affecting the
placement logic implemented by the scheduler, support
vCPU hard affinity.

Basically, a vCPU will now be assigned only to a pCPU
that is part of its own hard affinity. If such pCPU(s)
is (are) busy, the vCPU will wait, like it happens
when there are no free pCPUs.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_null.c